package com.ddpyjqtd.singleton;

import java.io.IOException;

/**
 * @Description: 单例的性能测试
 * 
 * @author: ddpyjqtd
 * @Date: 2019年3月9日
 *
 */
public class SingletonSpeedTest {

	private static final int THREAD_COUNT = 50000000;

	public static void main(String[] args) throws InterruptedException, IOException {
		long t1 = System.currentTimeMillis();
		for (int i = 0; i < THREAD_COUNT; i++) {
			StaticInnerClass.getInstance();
		}
		System.out.println("...time...." + (System.currentTimeMillis() - t1));
	}

}
